﻿package mortal.common.swfPlayer.frames
{
    import mortal.common.swfPlayer.data.*;

    dynamic public class FrameArray extends Array
    {
        public var isTurn:Boolean;
        public var isTurnY:Boolean;
        private var _actionInfo:ActionInfo;
        private var _delay:int = 2;

        public function FrameArray(param1:ActionInfo = null)
        {
            this._actionInfo = param1;
            return;
        }// end function

        public function get actionInfo() : ActionInfo
        {
            return this._actionInfo;
        }// end function

        public function set actionInfo(param1:ActionInfo) : void
        {
            this._actionInfo = param1;
            return;
        }// end function

        public function get delay() : int
        {
            if (this._actionInfo)
            {
                return this._actionInfo.delay;
            }
            return 10;
        }// end function

        public function get dirNum() : int
        {
            if (this._actionInfo)
            {
                return this._actionInfo.dir;
            }
            return 8;
        }// end function

        public function clone() : FrameArray
        {
            var _loc_1:* = new FrameArray(this._actionInfo);
            var _loc_2:int = 0;
            while (_loc_2 < this.length)
            {
                
                _loc_1[_loc_2] = this[_loc_2];
                _loc_2++;
            }
            return _loc_1;
        }// end function

    }
}
